package org.emet.entity.biz;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.emet.help.CGResource;
import org.emet.jee.console.entity.BaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Index;

@Entity
@Table(name = "T_VEHICLE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Vehicle extends BaseEntity {

	//licence plate number
	@CGResource("车牌号")
	@Index(name = "index_veh_lpn")
	private String lpn;
	// 车辆类型
	@CGResource("车辆类型")
	private String type;
	// 状态分为三种：派出，不可用，空闲,预定
	@CGResource("状态")
	private String status;

	private java.sql.Date boughtDate;
	private String engineSN;
	private String driveLcn;
	private String remark;

	public java.sql.Date getBoughtDate() {
		return boughtDate;
	}

	public void setBoughtDate(java.sql.Date boughtDate) {
		this.boughtDate = boughtDate;
	}

	public String getEngineSN() {
		return engineSN;
	}

	public void setEngineSN(String engineSN) {
		this.engineSN = engineSN;
	}

	public String getDriveLcn() {
		return driveLcn;
	}

	public void setDriveLcn(String driveLcn) {
		this.driveLcn = driveLcn;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getLpn() {
		return lpn;
	}

	public void setLpn(String lpn) {
		this.lpn = lpn;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
